package com.lam.common.base.domain.tree;

import java.math.BigDecimal;

import com.lam.common.utils.StringUtils;

public class TreeNode extends BaseTree<TreeNode> {

	private String id;
	
	private String parentId;
	
	private String key;
	
	private String title;
	
	private String icon;
	
	private String type;
	
	private BigDecimal sortNo;

	public String getKey() {
		return StringUtils.isBlank(key)? id : key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getTitle() {
		return title;
	}
	
	public String getLabel() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public BigDecimal getSortNo() {
		return sortNo;
	}

	public void setSortNo(BigDecimal sortNo) {
		this.sortNo = sortNo;
	}

}
